﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DreamIn.Structures.ServerDatabase.Entities;
using DreamIn.Structures.ServerDatabase.DataAccessLayer;

namespace DreamIn.Structures.ServerDatabase.BusinessLogic
{
    class AlbumBL
    {
        internal List<AlbumEntity> GetAlbums()
        {
            AlbumDAL albumDAL = new AlbumDAL();
            return albumDAL.GetAlbums();
        }
        internal void AddAlbum(String name, String fname, String path, int id_user)
        {
            AlbumDAL albumDAL = new AlbumDAL();
            albumDAL.AddAlbum(name, fname, path, id_user);
        }
        internal void DeleteAlbum(AlbumEntity album)
        {
            AlbumDAL albumDAL = new AlbumDAL();
            albumDAL.DeleteAlbum(album);
        }
        internal void UpdateAlbum(int id_album, String name, String fname, String path, int id_user)
        {
            AlbumDAL albumDAL = new AlbumDAL();
            albumDAL.UpdateAlbum(id_album, name, fname, path, id_user);
        }
    }
}
